<!DOCTYPE>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix = "s" uri ="/struts-tags" %>   
<%@ taglib prefix = "pg" uri="http://jsptags.com/tags/navigation/pager" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>账号信息-老师</title>
<link type="text/css" rel="stylesheet" href="include/css/main.css" />
<link type="text/css" rel="stylesheet" href="include/css/info.css" />
<script type="text/javascript" src="include/script/jquery.js" ></script>
<script type="text/javascript" src="include/script/main_ui_control.js"></script>

	<div class="top_info">
    	<img src="include/img/admin.png" />
        <div>
        	<span>管理员-账号信息-老师</span>
        </div>
    </div>
    <hr class="line" />
	<ul class="account_list">
        <li class="head">
        	<ul>
            	<li class="id">ID</li>
                <li class="name">名字</li>
                <li class="email">邮箱</li>
                <li class="phone">电话</li>
            </ul>
        </li>

       <s:iterator value="#request.pm.datas" id="teacher">
   		 <li>
        	<ul>
   			<li class="id"><s:property value="#teacher.email"/></li>
   			<li class="name">
   				<a href=javascript:$(".content").load('viewAction!viewTeacher?tchId=<s:property value="#teacher.email" />')>
   					<s:property value="#teacher.name" />
   				</a>
   			</li>
   			 <li class="email"><s:property value="#teacher.regularEmail"></s:property></li>
   		     <li class="phone"><s:property value="#teacher.phone"></s:property></li>
   			
   		     </ul>
        </li>
   		</s:iterator>     
    </ul>
    <center>
    	<pg:pager url="adminAction!pageTagLib"  items="${pm.total}" export="currentPageNumb=pageNumber" maxPageItems="3">
   		<pg:param name="searchType" value="teacher" />
   		<pg:first>
   			<a href="${pageUrl}">首页</a>
   		</pg:first>
   		<pg:prev>
   			<a href="${pageUrl}">上一页</a>
   		</pg:prev>
   		<pg:pages>
   			<c:choose>   			
   				<c:when test="${currentPageNumber eq pageNumber}">
					<font color="red">${pageNember}</font>
   				</c:when>
   				<c:otherwise>
   					<a href="${pageUrl}">${pageNumber}</a>
   				</c:otherwise>
   			</c:choose>
   		</pg:pages>
   		<pg:next>
   			<a href="${pageUrl}">下一页</a>
   		</pg:next>
   		<pg:last>
   			<a href="${pageUrl}">尾页</a>
   		</pg:last>
   	</pg:pager>
   	</center>
